Convex Recolorings of Strings and Trees
نویسندگان
چکیده
A coloring of a tree is convex if the vertices that pertain to any color induce a connected subtree; a partial coloring (which assigns colors to some of the vertices) is convex if it can be completed to a convex (total) coloring. Convex coloring of trees arises in areas such as phylogenetics, linguistics, etc. eg, a perfect phylogenetic tree is one in which the states of each character induce a convex coloring of the tree. Research on perfect phylogeny is usually focused on finding a tree so that few predetermined partial colorings of its vertices are convex. When a coloring of a tree is not convex, it is desirable to know ”how far” it is from a convex one. One common measure for this is based on the parsimony score, which is the number of edges whose endpoints have different colors. In this paper we study another natural measure for this distance: the minimal number of color changes at the vertices needed to make the coloring convex. This can be viewed as minimizing the number of “exceptional vertices” w.r.t. to a closest convex coloring. We also study a similar measure which aims at minimizing the number of “exceptional edges” w.r.t. a closest convex coloring. We show that finding each of these distances is NP-hard even for strings. We then focus on the first measure and generalize it to weighted trees, and then to non-uniform coloring costs. In the positive side we present few algorithms for convex recoloring of strings of trees: First we present algorithms for optimal convex recolorings of strings and trees with non-uniform coloring costs, which for any fixed number of colors are linear in the input size. Then we present fixed parameter tractable algorithms and approximation algorithms for convex recolorings of weighted strings and trees. Computer Science dept., Technion, Haifa 32000, Israel. [email protected] Computer Science dept., Technion, Haifa 32000, Israel. [email protected] 1 T ec hn io n C om pu te r Sc ie nc e D ep ar tm en t T ec hn ic al R ep or t C S20 03 -1 3 20 03
منابع مشابه
Convex Recolorings of Strings and Trees: Definitions, Hardness Results and Algorithms
A coloring of a tree is convex if the vertices that pertain to any color induce a connected subtree; a partial coloring (which assigns colors to some of the vertices) is convex if it can be completed to a convex (total) coloring. Convex colorings of trees arise in areas such as phylogenetics, linguistics, etc., e.g., a perfect phylogenetic tree is one in which the states of each character induc...
متن کاملEfficient Approximation of Convex Recolorings
A coloring of a tree is convex if the vertices that pertain to any color induce a connected subtree; a partial coloring (which assigns colors to some of the vertices) is convex if it can be completed to a convex (total) coloring. Convex coloring of trees arise in areas such as phylogenetics, linguistics, etc. eg, a perfect phylogenetic tree is one in which the states of each character induce a ...
متن کاملProbabilistic analysis of the asymmetric digital search trees
In this paper, by applying three functional operators the previous results on the (Poisson) variance of the external profile in digital search trees will be improved. We study the profile built over $n$ binary strings generated by a memoryless source with unequal probabilities of symbols and use a combinatorial approach for studying the Poissonized variance, since the probability distribution o...
متن کاملFully-Dynamic and Kinetic Conflict-Free Coloring of Intervals with Respect to Points
We introduce the dynamic conflict-free coloring problem for a set S of intervals in R with respect to points, where the goal is to maintain a conflict-free coloring for S under insertions and deletions. We investigate trade-offs between the number of colors used and the number of intervals that are recolored upon insertion or deletion of an interval. Our results include: • a lower bound on the ...
متن کاملCompact Suffix Trees Resemble PATRICIA Tries: Limiting Distribution of the Depth
Suffix trees are the most frequently used data structures in algorithms on words. In this paper, we consider the depth of a compact suffix tree, also known as the PAT tree, under some simple probabilistic assumptions. For a biased memoryless source, we prove that the limiting distribution for the depth in a PAT tree is the same as the limiting distribution for the depth in a PATRICIA trie, even...
متن کامل